Skip to content

Switch to R_getRegisteredNamespace #1469

Merged
eddelbuettel merged 2 commits intomasterfrom
bugfix/issue1468
Apr 7, 2026
Merged

Switch to R_getRegisteredNamespace #1469
eddelbuettel merged 2 commits intomasterfrom
bugfix/issue1468

Conversation

@eddelbuettel
Copy link
Copy Markdown
Member

Closes #1468

R-devel (very recently) added R_getRegisteredNamespace() allowing a lookup with in namespace with requiring the R_NamespaceRegistry symbol which is retired.

This minimal PR adjusts accordingly in one spot, and protects the condition by also selecting on the SVN commit number as the (automated) R-devel build we use in CI has not yet caught up.

Checklist

  • Code compiles correctly
  • R CMD check still passes all tests
  • Preferably, new tests were added which fail without the change
  • Document the changes by file in ChangeLog

@eddelbuettel eddelbuettel changed the title Bugfix/issue1468 Switch to R_getRegisteredNamespace retiring R_NamespaceRegistry Apr 3, 2026
@eddelbuettel eddelbuettel changed the title Switch to R_getRegisteredNamespace retiring R_NamespaceRegistry Switch to R_getRegisteredNamespace Apr 3, 2026
@Enchufa2
Copy link
Copy Markdown
Member

Enchufa2 commented Apr 5, 2026

Moving the conditional from 4.5.0 to 4.6.0 for Rf_findVarInFrame, won't it generate NOTEs for 4.5.0?

@eddelbuettel
Copy link
Copy Markdown
Member Author

Not for checking Rcpp itself. That may have been a 'during development of 4.6.0' change too.

@eddelbuettel
Copy link
Copy Markdown
Member Author

Rebasing now after your merge. And indeed while that now works for 4.5.3 and R-devel it bites with the older stuff. Will have to add another #if branch.

@eddelbuettel
Copy link
Copy Markdown
Member Author

Behaves locally under R 4.4.3, R 4.5.3 and R 4.7.0 so into reverse dependency checking it goes, first updating the machine to current CRAN and then we'll roll for the 2 1/2 or whatever it takes days.

Copy link
Copy Markdown
Contributor

@kevinushey kevinushey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@eddelbuettel
Copy link
Copy Markdown
Member Author

This worked out fine, result of reverse depends committed here

So ... merging and on to re-running the updated previous one.

@eddelbuettel eddelbuettel merged commit 65d40f9 into master Apr 7, 2026
26 checks passed
@eddelbuettel eddelbuettel deleted the bugfix/issue1468 branch April 7, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New API shrinkage from R-devel

3 participants